package com.befiv.lock.modle;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: Gjq
 * @Date: 2019/6/28 0028 上午 9:54
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "spring.redis")
@Component
public class Redis {
    private Boolean lock = false;
    private String host = "localhost";
    private Integer port = 6379;
    private Integer database =0;
    private String password;

}
